package com.hxzy.service;

import com.changgou.util.Result;
import com.hxzy.mapper.UserMapper;
import com.hxzy.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User login(User user){
        User u = userMapper.selectOne(user);
        return u;
    }

    public User findById(Integer id){
        return userMapper.selectByPrimaryKey(id);
    }

}
